package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.OrderVo;
import com.itheima.entity.QueryString;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderStatusDao {

    Page<OrderVo> findPage(QueryString queryString);

    List<Setmeal> findAll();

    OrderVo findById(Integer id);

    Integer findByIdAndMemberId(Integer id);

    void editmember(@Param("memberid") Integer memberid, @Param("memberName") String memberName);

    void editorder(@Param("id") Integer id, @Param("orderDate") Date orderDate, @Param("orderStatus") String orderStatus, @Param("orderType") String orderType);

    void delete(Integer id);

    void addOrderStatus(OrderVo orderVo);
}
